<?php
namespace Framework\SlickGrid;

class GridDataProvider {
	protected $data = null;
	protected $columns = null;
	public function __construct($data, $columns) {
		$this->data = $data;
		$this->columns = $columns;
	}
	
	public function render($returnObj=false) {
		if($returnObj) {
			return $this->data;
		} else {
			return json_encode($this->data);
		}
	}
	
	public function getColumns() {
		return $this->columns;
	}
}